<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<!--[if IE 6]>
<script src="./js/png.js?v={yun:}$config.cachecode{/yun}"></script>
<script>
	DD_belatedPNG.fix('.png,.admin_infoboxp_tj,');
</script>
<![endif]-->
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script type="text/javascript" src="js/admin_public.js?v={yun:}$config.cachecode{/yun}"></script>
<script type="text/javascript" src="js/show_pub.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>

<script>
$(document).ready(function() {
	$('body').click(function(evt) {
		if($(evt.target).parents("#gw_name").length == 0 && evt.target.id != "gw_name") {
			$('#gw_select').hide();
		}
	});
})

function audall() {
	var codewebarr = "";
	$(".check_all:checked").each(function() {  
		if(codewebarr == "") {
			codewebarr = $(this).val();
		} else {
			codewebarr = codewebarr + "," + $(this).val();
		}
	});
	if(codewebarr == "") {
		parent.layer.msg('您还未选择需要审核的用户！', 2, 8);
		return false;
	} else {
		$("input[name=uid]").val(codewebarr);
		$("#statusbody").val('');
		$("input[name='status']").attr('checked', false);
		$.layer({
			type: 1,
			title: '企业用户审核',
			closeBtn: [0, true],
			border: [10, 0.3, '#000', true],
			area: ['390px', '240px'],
			page: {
				dom: "#infobox2"
			}
		});
	}
}

$(function() {
	$(".locks").click(function() {
		var uid = $(this).attr("uid");
		var ip = $(this).attr("regip");
		var pytoken = $("#pytoken").val();
		var status = $(this).attr("status");
		$("#status_" + status).attr("checked", true);
		layui.use(['form'], function() {
			var form = layui.form;
			form.render();
		});
		$("input[name=statusip]").val(ip);
		$.post("index.php?m=admin_company&c=lockinfo", {
			uid: uid,
			pytoken: pytoken
		}, function(msg) {
			$("input[name=uid]").val(uid);
			$("#lock_info").val(msg);
			status_div('锁定用户', '450', '260');
		});
	});
	$(".status").click(function() {
		var uid=$(this).attr("uid");
		var status=$(this).attr("status");
		$("#status" + status).attr("checked", true);
		layui.use(['form'], function() {
			var form = layui.form;
			form.render();
		});
		var pytoken = $("#pytoken").val();
		$("input[name=uid]").val(uid);
		$.post("index.php?m=admin_company&c=lockinfo", {
			uid: uid,
			pytoken: pytoken
		}, function(msg) {
			$("#statusbody").val(msg);
			$.layer({
				type: 1,
				title: '企业用户审核',
				closeBtn: [0, true],
				border: [10, 0.3, '#000', true],
				area: ['390px', '230px'],
				page: {
					dom: "#infobox2"
				}
			});
		});
	});
	$(".m_yyzz").click(function() {
	   
		var url=$(this).attr("data-url");
		var name=$(this).attr("data-name");
		var status=$(this).attr("data-status");
		if(url == "") {
			parent.layer.msg('该企业未上传营业执照！', 2, 8);
		} else {
			$("#preview_comname").html(name);
			$("#preview_comstatus").html(status);
			$(".job_box_div").html("<a href='"+url+"' target='_blank'><img src='" + url + "' style='width:250px;height:100px' /></a>");
			
			$.layer({
				type: 1,
				title: '查看图片',
				closeBtn: [0, true],
				offset: ['80px', ''],
				border: [10, 0.3, '#000', true],
				area: ['350px', 'auto'],
				page: {
					dom: '#preview'
				}
			});
		}
	});
	
	$("#m_sendmsg").click(function() {
		var linktel = $('#m_linktel').val();
		if(!linktel) {
			parent.layer.msg('该企业未填写联系手机！', 2, 8);
		} else {
			send_moblie(linktel);
		}
	});
	
	$("#m_sendemail").click(function() {
		var linkmail = $('#m_linkmail').val();
		if(!linkmail) {
			parent.layer.msg('该企业未填写联系邮箱！', 2, 8);
		} else {
			send_email(linkmail);
		}
	});
	
	$("#m_sendsysmsg").click(function() {
		var user = $('#m_user').val();
		send_sysmsg(user);
	});
	$(".comrating").click(function() {
		var uid = $(this).attr("data-uid");
		var pytoken = $("#pytoken").val();
		$.post("index.php?m=admin_company&c=getstatis", {
			uid: uid,
			pytoken: pytoken
		}, function(data) {
			if(data) {
				var dataJson = eval("(" + data + ")");
				
				$('#job_num').val(dataJson.job_num);
				$('#down_resume').val(dataJson.down_resume);
				$('#invite_resume').val(dataJson.invite_resume);
				$('#breakjob_num').val(dataJson.breakjob_num);
				$('#part_num').val(dataJson.part_num);
				$('#breakpart_num').val(dataJson.breakpart_num);
				$('#zph_num').val(dataJson.zph_num);
				$('#oldetime').val(dataJson.vip_etime);
				$('#vipetime').text(dataJson.vipetime);
				$('#pay').val(dataJson.pay);
				$('#integral').val(dataJson.integral);
				$('#ratuid').val(uid);
				$("#ratingid").val(dataJson.rating);

				layui.use(['form'], function() {
					var f = layui.form;
					f.render();
				});
				var ratingname = $("#ratingid").find("option:selected").text();
				$('#rating_name').val(ratingname);
				$.layer({
					type: 1,
					title: '企业会员等级修改',
					closeBtn: [0, true],
					border: [10, 0.3, '#000', true],
					area: ['710px', '390px'],
					offset: ['20px', ''],
					page: {
						dom: "#comrating"
					}
				});
			} else {
				parent.layer.msg('用户信息获取失败！', 2, 8);
				return false;
			}
		});
	});
});

function resetpassword() {
	var pytoken = $('#pytoken').val();
	var resetpassword = $("#m_resetpassword").val(); 
	var uid = $("#m_uid").val();
	parent.layer.confirm("确定要重置密码呢", function() {
		$.get("index.php?m=admin_company&c=reset_companypassword&uid=" + uid + "&pytoken=" + pytoken, function(data) {
			parent.layer.closeAll();
			parent.layer.alert("企业会员：" + resetpassword + "密码已经重置为123456！", 9);
			return false
		});

	});
}
function showDIVMore(url,title){  
	layer.open({
		type: 2,
		title: title,
		shadeClose: true,
		shade: false,
		maxmin: true, 
		
		area: ['1100px','495px'], 
		content: url
	});
}

function manage(comid, url) {
	var pytoken = $("#pytoken").val();
	$('#m_comid').html(comid);
	$('#m_uid').val(comid);
	$('#m_home').attr('href', url);
	$('#m_taocan').attr('data-uid', comid);
	$('#m_zengzhi').attr('data-uid', comid);
	$('#m_center').attr('href', 'index.php?m=admin_company&c=Imitate&uid=' + comid);
	$('#m_integral').attr('onclick', "showDIVMore('index.php?m=company_pay&comid="+comid+"','积分管理')");
	$('#m_order').attr('onclick', "showDIVMore('index.php?m=company_order&comid="+comid+"','充值/订单')");
	$('#m_apply').attr('onclick', "showDIVMore('index.php?m=admin_comlog&comid="+comid+"','收到简历')");
	$('#m_down').attr('onclick', "showDIVMore('index.php?m=admin_userlog&comid="+comid+"','下载简历')");
	$('#m_invite').attr('onclick', "showDIVMore('index.php?m=admin_comlog&c=useridmsg&comid="+comid+"','面试邀请')");
	$('#m_job').attr('onclick', "showDIVMore('index.php?m=admin_company_job&uid="+comid+"','职位管理')");
	$('#m_show').attr('onclick', "showDIVMore('index.php?m=admin_company_pic&c=show&comid="+comid+"','企业环境')");
	$('#m_comtpl').attr('onclick', "showDIVMore('index.php?m=admin_company&c=mcomtpl&comid="+comid+"','企业模板')");
	$('#m_memberlog').attr('href', 'index.php?m=admin_company&c=member_log&comid=' + comid);
	$('#m_tongji').attr('href', 'index.php?m=admin_company&c=Imitate&uid=' + comid + '&type=tongji');
	$('#m_tongji').attr('target', '_blank');
	$('#m_addjob').attr('href', 'index.php?m=admin_company_job&c=show&uid=' + comid);

	var i = layer.load('请稍候...', 0);
	$.post("index.php?m=admin_company&c=getinfo", {
		comid: comid,
		pytoken: pytoken
	}, function(data) {
		layer.close(i);
		if(data) {
			var comdata = eval("(" + data + ")");
			if(comdata.name != "") {
				$('#m_name').html(comdata.name);
			} else {
				$('#m_name').html("尚未完善资料");
			}
			$('#m_username').html(comdata.username);
			if(comdata.linkman != "") {
				$('#m_linkman').html("【联系人】：" + comdata.linkman + "&nbsp;&nbsp;");
			} else {
				$('#m_linkman').html("【联系人】：" + "暂无联系人");
			}
			if(comdata.phone != "") {
				$('#m_phone').html("【手机】：" + comdata.phone + "&nbsp;&nbsp;");
			} else {
				$('#m_phone').html("【手机】：" + "暂无联系手机");
			}
			if(comdata.linkmail != "") {
				$('#m_email').html("【邮箱】：" + comdata.linkmail);
			} else {
				$('#m_email').html("【邮箱】：" + "暂无联系邮箱");
			}
			if(comdata.adviser != "") {
				$('#m_adviser').html(comdata.adviser);
			} else {
				$('#m_adviser').html("该企业尚未分配顾问");
			}
			if(comdata.integralNum != "") {
				$('#m_integral_num').html(comdata.integralNum);
			}
			if(comdata.orderNum != "") {
				$('#m_order_num').html(comdata.orderNum);
			}
			if(comdata.downNum != "") {
				$('#m_down_num').html(comdata.downNum);
			}
			if(comdata.applyNum != "") {
				$('#m_apply_num').html(comdata.applyNum);
			}
			if(comdata.inviteNum != "") {
				$('#m_invite_num').html(comdata.inviteNum);
			}
			if(comdata.showNum != "") {
				$('#m_show_num').html(comdata.showNum);
			}
			if(comdata.jobNum != "") {
				$('#m_job_num').html(comdata.jobNum);
			}

			$('#m_status').val(comdata.status);
			$('#m_regip').html(comdata.reg_ip);
			$('#m_rating').val(comdata.rating);
			$('#m_info').attr('href', 'index.php?m=admin_company&c=edit&id=' + comid + '&rating=' + comdata.rating);
			$('#m_password').attr('href', 'index.php?m=admin_company&c=edit&id=' + comid + '&rating=' + comdata.rating);
			$('#m_yyzzurl').val(comdata.yyzzurl);
			$('#m_yyzz').attr('data-name',comdata.name);
			$('#m_yyzz').attr('data-status',comdata.comyyzzstatus);
			$('#m_linktel').val(comdata.linktel);
			$('#m_linkmail').val(comdata.linkmail);
			$('#m_user').val(comdata.username);
			$('#m_resetpassword').val(comdata.username);

			$.layer({
				type: 1,
				title: '企业管理',
				closeBtn: [0, true],
				border: [10, 0.3, '#000', true],
				area: ['670px', '440px'],
				offset: ['20px', ''],
				page: {
					dom: "#manage"
				}
			});
		}
	});
}
</script>
	<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<title>后台管理</title>
</head>

    <body class="body_ifm">
        <div id="manage" class="" style="width:650px; display:none;">
            <div class="admin_usertck_box">
                <div class="admin_userinfo_box">
                    <div class="admin_userinfo_box_username">【用户名】：<em id="m_username"></em> <span class="admin_userinfo_box_useruid">【用户id】：<em id="m_comid"></em></span>
					<a href="javascript:void(0)" class="admin_userinfo_box_zx" id="m_resetpassworde" onClick="resetpassword();">[重置密码]</a>
                        <a href="###" class="admin_userinfo_box_zx" id="m_center" target="_blank">进入用户中心>></a>
                        <a href="" class="admin_userinfo_box_zx" id="m_home" target="_blank">预览公司主页>></a>
                    </div>
                    <div class="admin_userinfo_box_qyname">【操作对象】：<span class="admin_userinfo_box_qyname_s" id="m_name"></span><span class="admin_userinfo_box_useruid">【顾问姓名】：<em id="m_adviser"></em></span><span class="admin_userinfo_box_useruid">【用户IP】：<em  id="m_regip"></em></span></div>
                </div>
                <div class="admin_operation_box">
                    <div class="admin_operation_list">
                        <span class="admin_operation_list_name">业务管理：</span>
                        <a href="javascript:void(0)" class="admin_operation_list_a" id="m_integral">积分管理(<span id="m_integral_num">0</span>)</a>
                        <a href="###" class="admin_operation_list_a" id="m_order">充值/订单(<span id="m_order_num">0</span>)</a>
                        <a href="###" class="admin_operation_list_a" id="m_down">下载简历(<span id="m_down_num">0</span>)</a>
                        <a href="###" class="admin_operation_list_a" id="m_apply">收到简历(<span id="m_apply_num">0</span>)</a>
                        <a href="###" class="admin_operation_list_a" id="m_invite">面试邀请(<span id="m_invite_num">0</span>)</a>
                    </div>
                    <div class="admin_operation_list">
                        <span class="admin_operation_list_name">资料管理：</span>
                       <a href="###" class="admin_operation_list_a" id="m_job">职位管理(<span id="m_job_num">0</span>)</a>
                        
                        <a href="###" class="admin_operation_list_a" id="m_show">企业环境(<span id="m_show_num">0</span>)</a>
                        <a href="###" class="admin_operation_list_a" id="m_comtpl">企业模板</a>
                    </div>
                    <div class="admin_operation_list">
                        <span class="admin_operation_list_name">分析统计：</span>
                        <a href="###" class="admin_operation_list_a" id="m_tongji">招聘效果</a>
                    </div>
                  
                    <div class="admin_operation_list"><span class="admin_operation_list_name">联系方式：</span>
                   <em id="m_phone"></em> <a href="javascript:void(0);" class="admin_operation_list_a" id="m_sendmsg" style="font-weight:bold;color:#F60;">[发送短信]</a>
                     <div class="">
                    <em id="m_email"></em> <a href="javascript:void(0);" class="admin_operation_list_a" id="m_sendemail" style="font-weight:bold;color:#F60;">[发送邮件]</a></div>
  <em id="m_linkman"></em></div>

                  

                    <input type="hidden" id="m_yyzzurl" value="" />
                    <input type="hidden" id="m_linktel" value="" />
                    <input type="hidden" id="m_linkmail" value="" />
                    <input type="hidden" id="m_resetpassword" value="" />

                    <input type="hidden" id="m_user" value="" />
                    <input type="hidden" id="m_uid" value="" />
                    <input type="hidden" id="m_status" value="" />
                    <input type="hidden" id="m_regip" value="" />
                    <input type="hidden" id="m_rating" value="" />
                </div>
            </div>
        </div>
        <div id="preview" style="display:none;width:380px ">
            <div style="height:210px; overflow:auto;width:380px;">
                <table cellspacing='1' cellpadding='1' class="admin_examine_table">
					<tr>
                        <td>
                            <div style="width:90px; text-align:center">企业名称：</div>
                        </td>
                        <td>
                            <div class="" id="preview_comname"></div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div style="width:90px; text-align:center">营业执照：</div>
                        </td>
                        <td align="center">
                            <div class="job_box_div"></div>
                        </td>
                    </tr>
					<tr>
                        <td>
                            <div style="width:90px; text-align:center">审核状态：</div>
                        </td>
                        <td>
                            <div class="" id="preview_comstatus"></div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div style="width:100%;text-align:center; padding-top:10px;">
                                <a href="javascript:void(0)" onclick="layer.closeAll()"  style="padding:5px 15px; background:#f60;color:#fff">关闭</a>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        {yun:}include file="$adminstyle/member_send_email.htm"{/yun}
        <div id="status_div" style="display:none; width: 430px;text-align:center; ">
            <div class="">
                <form class="layui-form" action="index.php?m=admin_company&c=lock" target="supportiframe" method="post" id="formstatus">
                    <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                        <tr>
                            <th width="80">锁定操作：</th>
                            <td align="left">
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <div class="admin_examine_right" style="width:330px;">
                                            <input name="status" id="status_1" value="1" title="正常" type="radio" />
                                            <input name="status" id="status_2" value="2" title="锁定" type="radio" />
                                            <input name="status" id="status_3" value="3" title="锁定并限制IP访问" type="radio" />
                                        </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th>锁定说明：</th>
                            <td align="left"><textarea id="lock_info" name="lock_info" class="admin_explain_textarea" style="width:285px"></textarea></td>
                        </tr>
                        <tr>
                            <td colspan='2' align="center">
                                <input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
                                <input type="button" class="admin_examine_bth_qx closebutton" value='取消'>
                            </td>
                        </tr>
                    </table>
                    <input type="hidden" name="statusip" value="">
                    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                    <input name="uid" value="0" type="hidden">
                </form>
            </div>
        </div>
        <div id="comrating" style="display:none; ">
            <div style="width:710px;">
                <form class="layui-form" action="index.php?m=admin_company&c=uprating" target="supportiframe" method="post" id="formstatus">
                    <table cellspacing='1' cellpadding='1' class="table_form contentWrap" width="100%">
                        <tr>
                            <th align="right">会员等级：</th>
                            <td align="left">
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <div class="layui-input-inline">
                                            <select name="rating" id="ratingid" lay-filter="rating">
                                                <option value="">请选择</option>
                                                {yun:}foreach from = $ratingarr key=key item=ratlist{/yun}
                                                <option value="{yun:}$key{/yun}">{yun:}$ratlist{/yun}</option>
                                                {yun:}/foreach{/yun}
                                            </select>
                                        </div>
                                    </div>
                                </div>
                            </td>
                            <th align="right" class="comp_hotjob_line">账户{yun:}$config.integral_pricename{/yun}：</th>
                            <td>
                                <div class="admin_company_width220">
                                    <input type="text" name="integral" id="integral" size="15" class="admin_company_jobtext" value="" />
                                </div>
                            </td>
                        </tr>
                        <tr class="admin_table_trbg">
                            <th align="right">会员到期时间：</th>
                            <td>
                                <p id="vipetime"></p>
                            </td>
                            <th align="right" class="comp_hotjob_line">延长会员有效期：</th>
                            <td><input type="text" name="addday" style="width:40px;" class="admin_company_jobtext"> 天</td>
                        </tr>
                       
                        <tr>
                            <th align="right">发布职位数：</th>
                            <td><input type="text" name="job_num" id="job_num" size="15" class="admin_company_jobtext" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')" /></td>
                            <th align="right" class="comp_hotjob_line">刷新职位数：</th>
                            <td><input type="text" name="breakjob_num" id="breakjob_num" size="15" class="admin_company_jobtext" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')" /></td>
                        </tr>
                        <tr class="admin_table_trbg">
                            <th align="right">发布兼职数：</th>
                            <td><input type="text" name="part_num" id="part_num" size="15" class="admin_company_jobtext" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')" /></td>
                            <th align="right" class="comp_hotjob_line">刷新兼职数：</th>
                            <td><input type="text" name="breakpart_num" id="breakpart_num" size="15" class="admin_company_jobtext" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')" /></td>
                        </tr>
                        <tr class="admin_table_trbg">
                            <th align="right">剩余下载数：</th>
                            <td><input type="text" name="down_resume" id="down_resume" size="15" class="admin_company_jobtext" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')" /></td>
                            <th align="right" class="comp_hotjob_line">邀请面试：</th>
                            <td><input type="text" name="invite_resume" id="invite_resume" size="15" class="admin_company_jobtext" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')" /></td>
                        </tr>
                        <tr class="admin_table_trbg">
                            <th align="right">招聘会报名次数：</th>
                            <td><input type="text" name="zph_num" id="zph_num" size="15" class="admin_company_jobtext" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')" /></td>
                            

                        </tr>
                        <tr>
                            <th align="center" colspan="4" style="text-align:center;border-right:0px;">
                                <input type="submit" value='确认' class="admin_examine_bth" />
                                <input type="button" class="admin_examine_bth_qx closebutton" value='取消' />
                            </th>
                        </tr>
                    </table>
                    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                    <input type="hidden" name="rating_name" id="rating_name" value="">
                    <input type="hidden" name="oldetime" id="oldetime" value="">
                    <input name="ratuid" id="ratuid" value="0" type="hidden">
                </form>
            </div>
        </div>
        <div id="infobox2" style="display:none; width: 390px; ">
            <form class="layui-form" action="index.php?m=admin_company&c=status" target="supportiframe" method="post" id="formstatus">
                <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                    <tr>
                        <th width="80">审核操作：</th>
                        <td align="left">

                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <input name="status" id="status0" value="0" title="未审核" type="radio" />
                                    <input name="status" id="status1" value="1" title="已通过" type="radio" />
                                    <input name="status" id="status3" value="3" title="未通过" type="radio" />
                                </div>
                            </div>

                        </td>
                    </tr>
                    <tr>
                        <th>审核说明：</th>
                        <td align="left"><textarea id="statusbody" name="statusbody" class="admin_explain_textarea"></textarea></td>
                    </tr>
                    <tr>
                        <td colspan='2' align="center">

                            <input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
                            <input type="button" class="admin_examine_bth_qx closebutton" value='取消'>
                        </td>
                    </tr>
                </table>
                <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                <input name="uid" value="0" type="hidden">
            </form>
        </div>

        <div class="infoboxp">
            <div class="tabs_info">
                <ul>
                    <li {yun:}if $smarty.get.time!=5 && !$smarty.get.c{/yun}class="curr" {yun:}/if{/yun}>
                        <a href="index.php?m=admin_company">全部会员</a>
                    </li>
                    
					<li {yun:}if $smarty.get.time==5 && !$smarty.get.c{/yun}class="curr" {yun:}/if{/yun}>
                        <a href="index.php?m=admin_company&time=5">过期会员</a>
                    </li>

                    <li {yun:}if $smarty.get.c{/yun}class="curr" {yun:}/if{/yun}>
                        <a href="index.php?m=admin_company&c=writtenOffLog">解绑记录</a>
                    </li>
					
					<li {yun:}if $smarty.get.c{/yun}class="curr" {yun:}/if{/yun}>
                        <a href="index.php?m=admin_company&c=member_log">会员日志</a>
                    </li>
                </ul>
            </div>

            <div class="admin_new_tip">
                <a href="javascript:;" class="admin_new_tip_close"></a>
                <a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
                <div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
                <div class="admin_new_tip_list_cont">
                    <div class="admin_new_tip_list">该页面展示了网站所有的企业会员信息，可对会员进行编辑修改操作。</div>
                    <div class="admin_new_tip_list">可输入名称关键字进行搜索，也可进行详细的高级搜索。</div>
                </div>
            </div>
			 <div class="clear"></div>
			
			<div class="admin_new_search_box">
                <div class="admin_new_search_name">搜索类型：</div>
                <form action="index.php" name="myform" method="get">
                    <input type="hidden" name="m" value="admin_company" />
                    <input type="hidden" name="status" value="{yun:}$smarty.get.status{/yun}" />
                    <input type="hidden" name="rec" value="{yun:}$smarty.get.rec{/yun}" />
                    <input type="hidden" name="time" value="{yun:}$smarty.get.time{/yun}" />
                    <input type="hidden" name="rating" value="{yun:}$smarty.get.rating{/yun}" />
                    <div class="admin_Filter_text formselect" did="dcom_type">
                        <input type="button" {yun:}if $smarty.get.type=='1' ||$smarty.get.type=='' {/yun} value="企业名称" {yun:}elseif $smarty.get.type=='2' {/yun} value="用户名称" {yun:}elseif $smarty.get.type=='3' {/yun} value="联系人" {yun:}elseif $smarty.get.type=='4' {/yun} value="联系电话" {yun:}elseif $smarty.get.type=='5' {/yun} value="用户邮箱" {yun:}elseif $smarty.get.type=='6' {/yun} value="用户ID" {yun:}/if{/yun} class="admin_new_select_text" id="bcom_type">
                        <input type="hidden" name="type" id="com_type" value="{yun:}if $smarty.get.type{/yun}{yun:}$smarty.get.type{/yun}{yun:}else{/yun}1{yun:}/if{/yun}" />
                        <div class="admin_Filter_text_box" style="display:none" id="dcom_type">
                            <ul>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('1','com_type','企业名称')">企业名称</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('2','com_type','用户名称')">用户名称</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('3','com_type','联系人')">联系人</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('4','com_type','联系电话')">联系电话</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('5','com_type','用户邮箱')">用户邮箱</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('6','com_type','用户ID')">用户ID</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <input type="text" placeholder="输入你要搜索的关键字" name="keyword" class="admin_new_text">
                    <input type="submit" name='news_search' value="搜索" class="admin_new_bth" />

                    <a href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();" class="admin_new_search_gj">高级搜索</a>
                    <a href="index.php?m=admin_company&c=add" class="admin_new_cz_tj">+ 添加企业</a>
                </form>

                {yun:}include file="admin/admin_search.htm"{/yun}

            </div>

            <div class="clear"></div>
			<div class="admin_statistics">
            数据统计：
				<em class="admin_statistics_s">总数：<span class="ajaxcompanyall">0</span></em>
				<em class="admin_statistics_s">未审核：<span class="ajaxcompanystatus1">0</span></em>
				<em class="admin_statistics_s">未通过：<span class="ajaxcompanystatus2">0</span></em>
				<em class="admin_statistics_s">已锁定：<span class="ajaxcompanystatus3">0</span></em>
				搜索结果：<span>{yun:}$total{/yun}</span>；
			</div>    
			<div class="clear"></div>

            <div class="table-list" style="color:#898989">
                <div class="admin_table_border">
                    <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                    <form action="index.php" name="myform" method="get" id='myform' target="supportiframe">
                        <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
                        <input name="m" value="admin_company" type="hidden" />
                        <input name="c" value="del" type="hidden" />
                        <table width="100%">
                            <thead>
                                <tr class="admin_table_top">
                                    <th style="width:20px;"> <label for="chkall"><input type="checkbox" id='chkAll'  onclick='CheckAll(this.form)'/></label></th>
                                    <th>
                                        {yun:}if $smarty.get.t=="uid" && $smarty.get.order=="asc"{/yun}
                                        <a href="{yun:}searchurl order=desc t=uid m=admin_company untype='order,t'{/yun}">用户ID<img src="images/sanj.jpg" /></a>
                                        {yun:}else{/yun}
                                        <a href="{yun:}searchurl order=asc t=uid m=admin_company untype='order,t'{/yun}">用户ID<img src="images/sanj2.jpg" /></a>
                                        {yun:}/if{/yun}
                                    </th>
                                    <th align="left" width="150">用户</th>
                                    <th align="left">等级/到期时间</th>
									 <th>企业认证</th>
                                    <th>登录/注册</th>
                                    <th>来源</th>
									<th>职位数</th>
                                    <th>设为名企</th>
									 <th>站点</th>
									<th>企业顾问</th>
									<th>审核</th>
                                    <th width="165">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {yun:}foreach item=v key=key from=$rows{/yun}
                                <tr align="center" {yun:}if ($key+1)%2=='0' {/yun}class="admin_com_td_bg" {yun:}/if{/yun} id="list{yun:}$v.uid{/yun}">
                                    <td>
										<input type="checkbox" value="{yun:}$v.uid{/yun}" class="check_all" name='del[]' onclick='unselectall()' rel="del_chk" />
									</td>
                                    <td align="left" class="td1" style="text-align:center;"><span>{yun:}$v.uid{/yun}</span></td>
                                    <td align="left">
                                        <div class="">
                                            <a href="index.php?m=admin_company&c=Imitate&uid={yun:}$v.uid{/yun}" target="_blank">{yun:}$v.username{/yun}</a>{yun:}if $v.status==2{/yun} <img src="../config/ajax_img/suo.png" title="已锁定" width="15">{yun:}/if{/yun}
                                        </div>
                                        <div class="mt5">
                                            <a href="{yun:}url m=company c=show id=$v.uid{/yun}" target="_blank" class="admin_com_name" title="{yun:}$v.name{/yun} {yun:}if $v.shortname{/yun}【简称：{yun:}$v.shortname{/yun}】{yun:}/if{/yun}">{yun:}$v.name|mb_substr:0:10:"utf-8"{/yun}
											{yun:}if strlen($v.name)>10{/yun}...{yun:}/if{/yun}
											{yun:}if $v.shortname{/yun}【{yun:}$v.shortname{/yun}】{yun:}/if{/yun}</a>
                                        </div>
                                    </td>

                                    <td align="left">
                                        {yun:}if time() <=$v.vip_etime{/yun}
											{yun:}$v.rating_name{/yun} 
										{yun:}else{/yun} 
											<b style="color:red;">
                                            {yun:}if $v.oldrating_name{/yun} 
												{yun:}$v.oldrating_name{/yun} 
											{yun:}else{/yun} 
												{yun:}$v.rating_name{/yun} 
											{yun:}/if{/yun}
                                            </b>
										{yun:}/if{/yun}
										<a data-uid="{yun:}$v.uid{/yun}" href="javascript:void(0);" class="comrating">
											<span class="admin_company_xg_icon">[修改]</span>
										</a>
										{yun:}if $v.vip_etime{/yun} 
											{yun:}if time() <= $v.vip_etime{/yun} 
												<div class="mt5">{yun:}$v.vip_etime|date_format:"%Y-%m-%d"{/yun}</div>
											{yun:}else{/yun}
												<div class="mt5" style="color:red;">{yun:}$v.vip_etime|date_format:"%Y-%m-%d"{/yun}</div>
											{yun:}/if{/yun} 
										{yun:}/if{/yun}
									</td>
									<td>
										{yun:}if $v.email_status==1{/yun}
										<img src="../config/ajax_img/1-1.png" title="邮箱已认证" class="png" width="20" height="20"> {yun:}else{/yun}
										<img src="../config/ajax_img/1-2.png" title="邮箱未认证" class="png" width="20" height="20"> {yun:}/if{/yun} {yun:}if $v.moblie_status==1{/yun}
										<img src="../config/ajax_img/2-1.png" title="手机已认证" class="png" width="20" height="20"> {yun:}else{/yun}
										<img src="../config/ajax_img/2-2.png" title="手机未认证" class="png" width="20" height="20"> {yun:}/if{/yun} 
										
										{yun:}if $v.yyzz_status==1&&$v.yyzzurl{/yun}
											<img src="../config/ajax_img/3-1.png" title="营业执照已认证"  data-url="{yun:}$v.yyzzurl{/yun}" data-name="{yun:}$v.name{/yun}" data-status="{yun:}$v.yyzz_n{/yun}" class="png m_yyzz" width="20" height="20"> 
										{yun:}else{/yun}
											<img src="../config/ajax_img/3-2.png" title="营业执照未认证" data-name="{yun:}$v.name{/yun}" data-status="{yun:}$v.yyzz_n{/yun}" class="png m_yyzz" width="20" height="20"> {yun:}/if{/yun}
									</td>
									<td>
										{yun:}if $v.login_date{/yun} 
											{yun:}$v.login_date|date_format:"%Y-%m-%d"{/yun} 
										{yun:}else{/yun} 
											未登录 
										{yun:}/if{/yun}
										<div class="">{yun:}$v.reg_date|date_format:"%Y-%m-%d"{/yun}</div>
									</td>
									<td>
										{yun:}$source[$v.source]{/yun}
									</td>
									<td align="center">
										<div>{yun:}if $v.jobnum gt 0{/yun}{yun:}$v.jobnum{/yun}{yun:}else{/yun}<font color="red">0</font>{yun:}/if{/yun}个</div>
										<div>
											<a href="index.php?m=admin_company_job&c=show&uid={yun:}$v.uid{/yun}"  class="admin_cz_sc"><span class="admin_company_xg_icon">添加职位</span></a>
										</div>
									</td>
									
									<td>
										<div style="width:94px;">
											{yun:}if $v.hottime && $v.rec==1{/yun}
											<div class="">
													{yun:}if $v.hottime >= time(){/yun} 
														{yun:}$v.hottime|date_format:"%Y-%m-%d"{/yun}
													{yun:}else{/yun}
														<font color='red'>{yun:}$v.hottime|date_format:"%Y-%m-%d"{/yun}</font>
													{yun:}/if{/yun}
												</div>
												<a href="javascript:void(0);" onClick="showdiv3('{yun:}$v.uid{/yun}');" class="admin_cz_sc"><span class="admin_company_xg_icon">修改</span></a>/
												<a href="javascript:void(0);" onClick="layer_del('确定要取消该名企？','index.php?m=admin_company&c=delhot&id={yun:}$v.uid{/yun}');" class="admin_cz_sc"><span class="admin_company_xg_icon">取消</span></a>
												
											{yun:}else{/yun} 
												{yun:}if $v.name{/yun}
													<a href="javascript:void(0);" onClick="showdiv('{yun:}$v.uid{/yun}');" class="admin_cz_sc"><span class="admin_company_xg_icon">设为名企</span></a>
												{yun:}else{/yun}
													<a href="javascript:void(0);" onClick="layer.msg('请先完善企业资料',2,8);" class="admin_cz_sc"><span class="admin_company_xg_icon">设为名企</span></a>
												{yun:}/if{/yun} 
											{yun:}/if{/yun}
										</div>
									</td>
									
									<td>
										<div>{yun:}$Dname[$v.did]{/yun}</div>
										<div>
											<a href="javascript:;" onclick="checksite('{yun:}$v.name{/yun}','{yun:}$v.uid{/yun}','index.php?m=admin_company&c=checksitedid');" class="admin_company_xg_icon"><span class="admin_company_xg_icon">重新分配</span></a>
										</div>
									</td>
									<td align="center">
										{yun:}if $v.conid{/yun}
											<div>{yun:}$v.con{/yun}</div>
											<div>
												<a href="javascript:void(0);" onclick="checkguwen('{yun:}$v.username{/yun}','{yun:}$v.uid{/yun}','index.php?m=admin_company&c=checkguwen');" class="admin_company_xg_icon"><span class="admin_company_xg_icon">重新分配</span></a>
											</div>
										{yun:}else{/yun}
											<div>未分配</div>
											<div>
												<a href="javascript:void(0);" onclick="checkguwen('{yun:}$v.username{/yun}','{yun:}$v.uid{/yun}','index.php?m=admin_company&c=checkguwen');" class="admin_company_xg_icon"><span class="admin_company_xg_icon">分配顾问</span></a>
											</div>
										{yun:}/if{/yun}</td>
									<td>
										{yun:}if $v.status=='1'{/yun}
											<span class="admin_com_Audited">已审核</span> 
										{yun:}elseif $v.status=='2'{/yun}
											<span class="admin_com_Lock">已锁定</span> 
										{yun:}elseif $v.status=='3'{/yun}
											<span class="admin_com_tg">未通过</span> 
										{yun:}else{/yun}
											<span class="admin_com_noAudited">未审核</span> 
										{yun:}/if{/yun}
										<a href="javascript:void(0);" uid="{yun:}$v.uid{/yun}" status="{yun:}$v.status{/yun}" class="  status"   title="审核"><span class="admin_company_xg_icon">审核企业</span></a>
									</td>
									<td  align="left">
										
											<a href="javascript:void(0);" uid="{yun:}$v.uid{/yun}" status="{yun:}$v.status{/yun}" regip="{yun:}$v.reg_ip{/yun}" class="admin_new_c_bth admin_new_c_bthsd locks" title="企业将不能登录及其他操作">锁定</a>
											<a href="index.php?m=admin_company&c=edit&id={yun:}$v.uid{/yun}&rating={yun:}$v.rating{/yun}" class="admin_new_c_bth" title="修改密码、信息、套餐">修改</a>
                                            	<a href="index.php?m=admin_company&c=member_log&uid={yun:}$v.uid{/yun}" class="admin_new_c_bth admin_new_c_rz mt5" title="查看企业操作记录">日志</a>
									<br>
											<a href="javascript:void(0)" onClick="resetpw('{yun:}$v.username{/yun}','{yun:}$v.uid{/yun}');" class="admin_new_c_bth admin_new_c_mmcz mt5" title="重置密码为123456">密码</a>
										
												<a href="javascript:void(0);" onclick="layer_del('确定要删除？', 'index.php?m=admin_company&c=del&del={yun:}$v.uid{/yun}');" class="admin_new_c_bth admin_new_c_bth_sc" title="删除关于该企业所有记录">删除</a>	<a href="javascript:;" onclick="manage('{yun:}$v.uid{/yun}','{yun:}url m=company c=show id=$v.uid{/yun}')" class="admin_new_c_bth admin_new_c_bth_more  mt5"  title="包括积分管理、订单记录、下载简历、收到简历、面试邀请、企业环境、企业模板、招聘分析、短信邮箱联系会员">更多</a>
										
									</td>
								</tr>
							{yun:}/foreach{/yun}
							<tr>
								<td align="center"><label for="chkall2"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></label></td>
								<td colspan="12">
									<label for="chkAll2">全选</label>
									<input class="admin_button" type="button" name="delsub" value="批量审核" onClick="audall();" /> 
									{yun:}if $email_promiss{/yun} 
										<input class="admin_button" type="button" value="发邮件" onclick="return confirm_email('确定发邮件吗？','email_div')" />
									{yun:}/if{/yun} 
									{yun:}if $moblie_promiss{/yun}
										<input class="admin_button" type="button" value="发信息" onclick="return confirm_email('确定发信息吗？','moblie_div')" />
									{yun:}/if{/yun}
									<input class="admin_button" type="button" name="delsub" value="删除所选" onClick="return really('del[]')" />
									<input class="admin_button" type="button" name="delsub" value="批量选择分站" onClick="checksiteall('index.php?m=admin_company&c=checksitedid');" />
									<input class="admin_button" type="button" name="delsub" value="批量分配顾问" onClick="checkguwenall('index.php?m=admin_company&c=checkguwen');" />
								</td>
								
							</tr>
							{yun:}if $total > $config.sy_listnum {/yun}
								<tr>
									{yun:}if $pagenum==1{/yun}
										<td colspan="3"> 从 1 到 {yun:}$config.sy_listnum {/yun} ，总共 {yun:}$total{/yun} 条</td>
									{yun:}else if $pagenum > 1 && $pagenum < $pages{/yun}
										<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$pagenum * $config.sy_listnum{/yun} ，总共 {yun:}$total{/yun} 条</td>
									{yun:}else if $pagenum == $pages{/yun}
										<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$total{/yun} ，总共 {yun:}$total{/yun} 条</td>
									{yun:}/if{/yun}
									<td colspan="10" class="digg">{yun:}$pagenav{/yun}</td>
								</tr>
							{yun:}/if{/yun}
						</tbody>
					</table>
                </form>
            </div>
        </div>
	</div>

        <script>
            layui.use(['layer', 'form'], function() {
                var layer = layui.layer,
                    form = layui.form,
                    $ = layui.$,
                    url = "index.php?m=admin_company&c=getrating";

                var pytoken = $("#pytoken").val();

                form.on('select(rating)', function(data) {
                    $.post(url, {
                        id: data.value,
                        pytoken: pytoken
                    }, function(htm) {
                        if(htm) {
                            var dataJson = eval("(" + htm + ")");
                            
                            $('#job_num').val(dataJson.job_num);
                            $('#down_resume').val(dataJson.resume);
                            $('#editjob_num').val(dataJson.editjob_num);
                            $('#invite_resume').val(dataJson.interview);
                            $('#breakjob_num').val(dataJson.breakjob_num);
                            $('#part_num').val(dataJson.part_num);
                            $('#editpart_num').val(dataJson.editpart_num);
                            $('#breakpart_num').val(dataJson.breakpart_num);
                            $('#zph_num').val(dataJson.zph_num);
                             
                            $('#vipetime').text(dataJson.vipetime);
                            $('#oldetime').val(dataJson.oldetime);
                            $('#rating_name').val(dataJson.name);
                            $('#com_rating_val').val(dataJson.id);
                        } else {
                            layer.msg('请选择会员等级');
                        }
                        form.render('select');
                    });
                });

            });
			$(document).ready(function(){
				$.get("index.php?m=admin_company&c=companyNum", function(data) {
					var datas = eval('(' + data + ')');
					if(datas.companyAllNum) {
						$('.ajaxcompanyall').html(datas.companyAllNum);
					}
					if(datas.companyStatusNum1) {
						$('.ajaxcompanystatus1').html(datas.companyStatusNum1);
					}
					if(datas.companyStatusNum2) {
						$('.ajaxcompanystatus2').html(datas.companyStatusNum2);
					}
					if(datas.companyStatusNum3) {
						$('.ajaxcompanystatus3').html(datas.companyStatusNum3);
					}
				});
			});
		</script>

        {yun:}include file="$adminstyle/checkdomain.htm"{/yun}
    </body>
</html>